<?php
@session_start();

if(!isset($_SESSION['_username'])){
	header('location:../');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title> Standart Pelayanan Minimal</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<link href="../assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
	<link href="../assets/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link href="../assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
	<link href="../css/style.css" rel="stylesheet" />
	<link href="../css/style_responsive.css" rel="stylesheet" />
	<link href="../css/style_default.css" rel="stylesheet" id="style_color" />
</head>
<body class="fixed-top">
	<div id="header" class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="brand" href="admindata.php">
				    <img src="" />
				</a>
				<a class="btn btn-navbar collapsed" id="main_menu_trigger" data-toggle="collapse" data-target=".nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="arrow"></span>
				</a>
			</div>
		</div>
	</div>
	<div id="container" class="row-fluid">
		<div id="sidebar" class="nav-collapse collapse">
			<div class="sidebar-toggler hidden-phone"></div>
	
			<div class="navbar-inverse">
				<form class="navbar-search visible-phone">
					<input type="text" class="search-query" placeholder="Search" />
				</form>
			</div>
			
			<?php
				include 'menu.php';
			?>
		</div>
		<div id="main-content">
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12" id="admin_content">
						<?php echo '<h3>Selamat Datang di ';
							echo $_SESSION['_skpd'];
							echo ' !!</h3>';?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		2013 &copy; Standart Pelayanan Minimal
		<div class="span pull-right">
			<span class="go-top"><i class="icon-arrow-up"></i></span>
		</div>
	</div>
	
<script src="../js/jquery-1.8.3.min.js"></script>
<script src="../assets/bootstrap/js/bootstrap.min.js"></script>
<script src="../js/jquery.blockui.js"></script>
<script src="../js/jquery.cookie.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/scripts.js"></script>
<script src="../js/bootbox.min.js"></script>
<script>
$('a.geo-link').click(function(e){
	if(e.preventDefault()) e.preventDefault = false;
	
	var link = $(this);
	link.parent().parent().children().removeClass('active');
	link.parent().addClass('active');
	
	var urls = link.attr('href');
	var post = $.post(urls,{open:'please'});
	post.done(function(response){
		$('#admin_content').html(response);
	});
});

jQuery(document).ready(function() {
			// initiate layout and plugins
			App.setMainPage(true);
			App.init();
		});
</script>
<script>
$('a.logout').click(function(e){
	var url = "../home/dfs.php";
	var post =  $.post(url, {what:'outt'});
	post.done(function(oyi){
		if(oyi = 'ko'){
			location.href = '../';
		}
	});
});
</script>
</body>
</html>